﻿using System.Collections.Generic;

namespace Jimmy.NinjiectDemo.Service.Imp
{
    internal class UserService : IUserService
    {
        public bool Login(string userName, string password)
        {
            return !string.IsNullOrEmpty(userName) && !string.IsNullOrEmpty(password)
                && "admin" == userName && "admin" == password;
        }

        public List<string> List()
        {
            return new List<string>()
            {
                "admin",
                "Jimmy",
                "frank"
            };
        }
    }
}